package com.xinxin.siteset.vo;

import lombok.Data;

/**
 * @author 史鑫鑫
 * @date Created in 2019/6/7 1:47
 */
@Data
public class Response<T> {
    private int code;
    private String msg;
    private T data;

    public Response(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Response(int code, String msg) {
        this.code = code;
        this.msg = msg;
        this.data = null;
    }
}
